package org.bigjava.travel.service;

import org.bigjava.travel.bean.Car;

import java.util.List;

/**
 * 车票业务逻辑层<接口>
 */
public interface CarService {
    public long count()throws Exception;

    public Car findById(Integer id)throws Exception;

    public List<Car> findList()throws Exception;

    public void save(Car car)throws Exception;

    public void update(Car car)throws Exception;

    public void deleteById(Integer id)throws Exception;

    public List<Car> findByPage(int currentPage, int pageSize, String query)throws Exception;

    public List<Car> findByPage(int currentPage, int pageSize)throws Exception;

    public long state0count()throws Exception;

    public long state1count()throws Exception;

    public long state2count()throws Exception;

    public long type1count()throws Exception;

    public long type2count()throws Exception;

}
